package com.systop.service;

import com.systop.dao.CommentDao;
import com.systop.dao.CommentDao;
import com.systop.entity.Comment;

import java.util.ArrayList;

public class CommentService {

    private CommentDao commentDao = new CommentDao();
    public ArrayList<Comment> findAllByMsgId(Integer mid){
        ArrayList<Comment> commentList = commentDao.findAllByMsgId(mid);
        return commentList;
    }

    public int add(Comment message){
        return commentDao.add(message);
    }
}
